package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 预报名信息统计
 *
 * @author zhiyuan
 * @since 2023-03-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_enrol_ybm_calculate")
@Schema(name = "EduEnrolYbmCalculate", title = "预报名信息统计", description = "预报名信息统计实体类")
public class EduEnrolYbmCalculate extends Model<EduEnrolYbmCalculate> {

    private static final long serialVersionUID = 1L;

    @Schema(name = "enrolYbmId", title = "预报名统计ID")
    @TableId(value = "enrol_ybm_id", type = IdType.ASSIGN_UUID)
    private String enrolYbmId;

    @Schema(name = "schoolId", title = "学校id")
    @TableField(value = "school_id")
    private String schoolId;

    @Schema(name = "schoolName", title = "学校名称")
    @TableField(value = "school_name")
    private String schoolName;

    @Schema(name = "street", title = "街道名称")
    @TableField(value = "street")
    private String street;

    @Schema(name = "schoolCategory", title = "学校类别")
    @TableField(value = "school_category")
    private String schoolCategory;

    @Schema(name = "studentEnrollPreId", title = "预采集id")
    @TableField(value = "student_enroll_pre_id")
    private String studentEnrollPreId;

    @Schema(name = "del", title = "0,未删除,1,已删除")
    @TableField(value = "del", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    @TableLogic
    private String del;

    @Schema(name = "year", title = "年份")
    @TableField(value = "year")
    private Integer year;

    @Schema(name = "configName", title = "招生类别")
    @TableField(value = "config_name")
    private String configName;

    @Schema(name = "areaCode", title = "统筹区")
    @TableField(value = "area_code")
    private String areaCode;

    @Schema(name = "schoolNature", title = "学校性质0.公办 1.民办")
    @TableField(value = "school_nature")
    private String schoolNature;
    @Schema(name = "hjType", title = "是否本地户籍（本地户籍+本地房产）")
    @TableField(value = "hj_type")
    private String hjType;

    @Override
    public Serializable pkVal() {
        return this.enrolYbmId;
    }
}
